#ifndef LOCALMETHOD_HPP
#define LOCALMETHOD_HPP

#include <QObject>
namespace localObject {
class LocalMethod : public QObject
{
    Q_OBJECT
public:
    explicit LocalMethod(QObject *parent = nullptr);
    QStringList methods();
    QList<int> getParamTypes(QString methodname);
    QStringList getParamDBusTypes(QString methodname);
    QStringList getParamNames(QString methodname);
    QVariant callMethod(const QString &methodname,QVariantList args,bool *ok = NULL);
signals:

public slots:
//    void callMethod();
    void sleep(uint s);
    void msleep(uint ms);
    void usleep(uint us);
};
};
localObject::LocalMethod &localObj();
#endif // LOCALMETHOD_HPP
